﻿using System.Collections.Generic;

namespace nHydrate.EFCore.DataAccess
{
	/// <summary>
	/// A result structure for audit records
	/// </summary>
	/// <typeparam name="T"></typeparam>
	public class AuditResult<T>
	{
		public AuditResult(T item1, T item2)
		{
			this.Item1 = item1;
			this.Item2 = item2;
		}

		/// <summary>
		/// 
		/// </summary>
		public IEnumerable<IAuditResultFieldCompare> Differences { get; set; }
		/// <summary>
		/// 
		/// </summary>
		public T Item1 { get; internal set; }
		/// <summary>
		/// 
		/// </summary>
		public T Item2 { get; internal set; }
	}

}